<template>
  <div class="main user-layout-register"></div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { STORAGE_TOKEN_KEY } from '@/store/mutation-type';
import ls from '@/utils/local-storage';
import { useRouter } from 'vue-router';

export default defineComponent({
  setup() {
    const router = useRouter();
    // 跳转后台管理系统
    const backStageManagement = () => {
      const token = ls.get(STORAGE_TOKEN_KEY);
      const url = `${(window as any).g.consoleUrl}?token=${token}`;
      window.open(url, '_blank');
    };
    backStageManagement();
    router.back();
  },
});
</script>

<style lang="less" scoped></style>
